package com.huanbao.saas.controller;

import com.huanbao.common.pojo.sassrabc.vo.SassUserDetail;
import com.huanbao.saas.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class AdminController {

    @Autowired
    private AdminService adminService;

    @PostMapping("/getSassUserByName")
    public SassUserDetail getSassUserByName(@RequestParam("loginName") String loginName){
        return adminService.getSassUserByName(loginName);
    }

}
